<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜 - 系统设置</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .mockup {
            border: 2px solid #e5e7eb;
            border-radius: 1rem;
            overflow: hidden;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: #3b82f6;
        }
        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen p-8">
    <div class="mockup w-[400px] h-[600px]">
        <div class="h-full flex flex-col glass-effect">
            <!-- 顶部导航 -->
            <div class="p-4 border-b border-gray-200">
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <button class="mr-4 p-2 rounded-full hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/arrow-left.svg" class="w-6 h-6">
                        </button>
                        <h1 class="text-xl font-bold text-blue-800">系统设置</h1>
                    </div>
                    <button class="p-2 rounded-full hover:bg-gray-100">
                        <img src="https://unpkg.com/lucide-static@latest/icons/save.svg" class="w-6 h-6">
                    </button>
                </div>
            </div>

            <!-- 设置内容 -->
            <div class="flex-1 overflow-y-auto">
                <!-- 基本设置 -->
                <div class="p-4 border-b border-gray-200">
                    <h2 class="text-lg font-semibold text-gray-900 mb-4">基本设置</h2>
                    <div class="space-y-4">
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">系统名称</h3>
                                <p class="text-sm text-gray-500">显示在系统界面上的名称</p>
                            </div>
                            <input type="text" class="w-32 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" value="智慧配镜系统">
                        </div>
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">系统语言</h3>
                                <p class="text-sm text-gray-500">系统界面显示语言</p>
                            </div>
                            <select class="w-32 px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
                                <option>简体中文</option>
                                <option>English</option>
                            </select>
                        </div>
                    </div>
                </div>

                <!-- 通知设置 -->
                <div class="p-4 border-b border-gray-200">
                    <h2 class="text-lg font-semibold text-gray-900 mb-4">通知设置</h2>
                    <div class="space-y-4">
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">新订单通知</h3>
                                <p class="text-sm text-gray-500">收到新订单时发送通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">支付成功通知</h3>
                                <p class="text-sm text-gray-500">订单支付成功时发送通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox" checked>
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">系统更新通知</h3>
                                <p class="text-sm text-gray-500">系统更新时发送通知</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox">
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                    </div>
                </div>

                <!-- 数据管理 -->
                <div class="p-4 border-b border-gray-200">
                    <h2 class="text-lg font-semibold text-gray-900 mb-4">数据管理</h2>
                    <div class="space-y-4">
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">数据备份</h3>
                                <p class="text-sm text-gray-500">备份系统数据到本地</p>
                            </div>
                            <button class="px-4 py-2 text-sm text-blue-600 border border-blue-600 rounded-lg hover:bg-blue-50">
                                立即备份
                            </button>
                        </div>
                        <div class="flex items-center justify-between">
                            <div>
                                <h3 class="text-sm font-medium text-gray-900">数据恢复</h3>
                                <p class="text-sm text-gray-500">从备份文件恢复数据</p>
                            </div>
                            <button class="px-4 py-2 text-sm text-blue-600 border border-blue-600 rounded-lg hover:bg-blue-50">
                                选择文件
                            </button>
                        </div>
                    </div>
                </div>

                <!-- 系统信息 -->
                <div class="p-4">
                    <h2 class="text-lg font-semibold text-gray-900 mb-4">系统信息</h2>
                    <div class="space-y-2">
                        <div class="flex items-center justify-between">
                            <span class="text-sm text-gray-500">系统版本</span>
                            <span class="text-sm text-gray-900">v1.0.0</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <span class="text-sm text-gray-500">最后更新</span>
                            <span class="text-sm text-gray-900">2024-03-15</span>
                        </div>
                        <div class="flex items-center justify-between">
                            <span class="text-sm text-gray-500">数据库大小</span>
                            <span class="text-sm text-gray-900">128MB</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部导航 -->
            <div class="p-4 border-t border-gray-200">
                <div class="flex justify-between items-center">
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/home.svg" class="w-6 h-6 mx-auto">
                        <span class="text-xs mt-1">首页</span>
                    </button>
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/package.svg" class="w-6 h-6 mx-auto">
                        <span class="text-xs mt-1">商品</span>
                    </button>
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/clipboard-list.svg" class="w-6 h-6 mx-auto">
                        <span class="text-xs mt-1">订单</span>
                    </button>
                    <button class="px-4 py-2 text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/settings.svg" class="w-6 h-6 mx-auto">
                        <span class="text-xs mt-1">设置</span>
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 